<div class="form-group" fd-property="field">
    <label>数据字段</label>
    <select class="select2" style="width:100%" name="field" id="p_field">
    #foreach($!table in $!tables)
    #if($!table == $!primary)
    <optgroup label="$!table(主表)">
        #foreach($!col in $!columns)
        #if($!col.get(2) == $!table)
        <option value="$!col.get(0)">$!col.get(1)</option>
        #end
        #end
    </optgroup>
    #end
    #end
    #foreach($!table in $!tables)
    #if($!table != $!primary)
    <optgroup label="$!{table}(子表)">
        #foreach($!col in $!columns)
        #if($!col.get(2) == $!table)
        <option value="$!{table}.$!col.get(0)">$!col.get(1)</option>
        #end
        #end
    </optgroup>
    #end
    #end
    </select>
</div>
<div class="form-group" fd-property="id">
    <label>标识</label> <input type="text" name="id" class="form-control" placeholder="控件ID"/>
</div>
<div class="form-group" fd-property="name">
    <label>控件名称</label> <input type="text" name="name" class="form-control" placeholder="控件名称"/>
</div>
<div class="form-group" fd-property="value">
    <label>默认值</label> <input type="text" name="value" class="form-control" placeholder="控件值"/>
</div>
<div class="form-group" fd-property="text">
    <label>显示文本</label> <input type="text" name="text" class="form-control" placeholder="显示文本"/>
</div>
<div class="form-group" fd-property="label_text">
    <label>显示文本</label> <input type="text" name="label_text" class="form-control" placeholder="显示文本"/>
</div>
<div class="form-group" fd-property="placeholder">
    <label>提示文本</label> <input type="text" name="placeholder" class="form-control" placeholder="提示">
</div>
<div class="form-group" fd-property="url">
    <label>URL地址</label> <input type="text" name="url" class="form-control" placeholder="URL地址">
</div>
<div class="form-group" fd-property="type">
    <label>控件类型</label>
    <select class="form-control" name="type">
    <optgroup label="文本框类型">
        <option value="text">text</option>
        <option value="password">password</option>
        <option value="number">number</option>
        <option value="email">email</option>
        <option value="hidden">hidden</option>
    </optgroup>
    <optgroup label="按钮类型">
        <option value="button">button</option>
        <option value="submit">submit</option>
    </optgroup>
    </select>
</div>
<div class="form-group" fd-property="dateFormat">
    <label>日期格式</label>
    <select class="form-control" name="dateFormat">
    <option value="yyyy年mm月dd日">yyyy年mm月dd日</option>
    <option value="yyyy/mm/dd">yyyy/mm/dd</option>
    <option value="yyyy-mm-dd">yyyy-mm-dd</option>
    <option value="yyyy年mm月">yyyy年mm月</option>
    <option value="yyyy/mm">yyyy/mm</option>
    <option value="yyyy-mm">yyyy-mm</option>
    </select>
</div>